# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
        ('staff', '0003_auto_20160112_0902'),
    ]

    operations = [
        migrations.CreateModel(
            name='AttendRecord',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('date', models.CharField(max_length=100, verbose_name='\u65e5\u671f', db_column=b'date', blank=True)),
                ('enter_time', models.CharField(max_length=100, verbose_name='\u7b2c\u4e00\u6b21\u6253\u5361', db_column=b'workstart', blank=True)),
                ('leave_time', models.CharField(max_length=100, verbose_name='\u6700\u540e\u4e00\u6b21\u6253\u5361', db_column=b'workleave', blank=True)),
                ('workspan', models.CharField(max_length=100, verbose_name='\u5de5\u4f5c\u65f6\u957f', db_column=b'workspan', blank=True)),
                ('late_level', models.CharField(max_length=100, verbose_name='\u8fdf\u5230\u7b49\u7ea7', db_column=b'late_level', blank=True)),
                ('late_person', models.CharField(max_length=100, verbose_name='\u4e2a\u4eba\u8fdf\u5230\u65f6\u95f4', db_column=b'late_person', blank=True)),
                ('late_team', models.CharField(max_length=100, verbose_name='\u56e2\u961f\u8fdf\u5230\u65f6\u95f4', db_column=b'late_team', blank=True)),
                ('overtime', models.CharField(max_length=100, verbose_name='\u52a0\u73ed\u65f6\u95f4', db_column=b'overtime', blank=True)),
                ('absent', models.CharField(max_length=100, verbose_name='\u65f7\u5de5\u65f6\u95f4', db_column=b'absent', blank=True)),
                ('early_leave', models.CharField(max_length=100, verbose_name='\u65e9\u9000\u65f6\u95f4', db_column=b'early_leave', blank=True)),
                ('timestr', models.CharField(max_length=500, verbose_name='\u539f\u59cb\u6253\u5361\u8bb0\u5f55', db_column=b'timestr', blank=True)),
                ('note', models.TextField(verbose_name='\u5907\u6ce8', db_column=b'note', blank=True)),
                ('staff', models.ForeignKey(db_column=b'staff_info', blank=True, to='staff.StaffInfo', null=True, verbose_name='\u5458\u5de5\u57fa\u672c\u4fe1\u606f')),
            ],
            options={
                'db_table': 'attend_record',
                'verbose_name': '\u8003\u52e4\u8bb0\u5f55',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='AttendReport',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('start_date', models.CharField(max_length=100, verbose_name='\u7edf\u8ba1\u5f00\u59cb\u65e5\u671f', db_column=b'startdate', blank=True)),
                ('due_date', models.CharField(max_length=100, verbose_name='\u622a\u6b62\u65e5\u671f', db_column=b'duedate', blank=True)),
                ('person_leave', models.CharField(max_length=100, verbose_name='\u4e8b\u5047\u7edf\u8ba1', db_column=b'person_leave', blank=True)),
                ('sick', models.CharField(max_length=100, verbose_name='\u75c5\u5047\u7edf\u8ba1', db_column=b'sick', blank=True)),
                ('annual', models.CharField(max_length=100, verbose_name='\u5e74\u5047\u7edf\u8ba1', db_column=b'annual', blank=True)),
                ('other_paid_leave', models.CharField(max_length=100, verbose_name='\u5176\u4ed6\u5e26\u85aa\u5047', db_column=b'other_paid_leave', blank=True)),
                ('swap_off', models.CharField(max_length=100, verbose_name='\u8c03\u4f11', db_column=b'swap_off', blank=True)),
                ('paid_leave', models.CharField(max_length=100, verbose_name='\u5e26\u85aa\u5047', db_column=b'paid_leave', blank=True)),
                ('late1', models.CharField(max_length=100, verbose_name='\u8fdf\u52301\u7edf\u8ba1', db_column=b'late1', blank=True)),
                ('late2', models.CharField(max_length=100, verbose_name='\u8fdf\u52302\u7edf\u8ba1', db_column=b'late2', blank=True)),
                ('late3', models.CharField(max_length=100, verbose_name='\u8fdf\u52303\u7edf\u8ba1', db_column=b'late3', blank=True)),
                ('late4', models.CharField(max_length=100, verbose_name='\u8fdf\u52304\u7edf\u8ba1', db_column=b'late4', blank=True)),
                ('late_person', models.CharField(max_length=100, verbose_name='\u4e2a\u4eba\u8fdf\u5230\u65f6\u95f4\u7edf\u8ba1', db_column=b'late_person', blank=True)),
                ('late_team', models.CharField(max_length=100, verbose_name='\u56e2\u961f\u8fdf\u5230\u65f6\u95f4\u7edf\u8ba1', db_column=b'late_team', blank=True)),
                ('overtime', models.CharField(max_length=100, verbose_name='\u52a0\u73ed\u65f6\u957f', db_column=b'overtime', blank=True)),
                ('exp_workday', models.CharField(max_length=100, verbose_name='\u5e94\u8be5\u5de5\u4f5c\u5929\u6570', db_column=b'exp_workday', blank=True)),
                ('act_workday', models.CharField(max_length=100, verbose_name='\u5b9e\u9645\u5de5\u4f5c\u5929\u6570', db_column=b'act_workday', blank=True)),
                ('allow_day', models.CharField(max_length=100, verbose_name='\u8865\u8d34\u5929\u6570', db_column=b'allow_day', blank=True)),
                ('leave_day', models.CharField(max_length=100, verbose_name='\u603b\u7684\u8bf7\u5047\u5929\u6570', db_column=b'leave_day', blank=True)),
                ('deduction_day', models.CharField(max_length=100, verbose_name='\u6263\u9664\u5de5\u8d44\u5929\u6570', db_column=b'deduction_day', blank=True)),
                ('absent', models.CharField(max_length=100, verbose_name='\u65f7\u5de5\u65f6\u957f', db_column=b'absent', blank=True)),
                ('early_leave', models.CharField(max_length=100, verbose_name='\u65e9\u9000\u65f6\u957f', db_column=b'early_leave', blank=True)),
                ('full_attend', models.CharField(max_length=50, verbose_name='\u662f\u5426\u5168\u52e4', db_column=b'full_attend', blank=True)),
                ('process', models.CharField(max_length=100, verbose_name='\u8b66\u544a\u7c7b\u578b', db_column=b'process', blank=True)),
                ('note', models.TextField(verbose_name='\u5907\u6ce8', db_column=b'note', blank=True)),
                ('staff', models.ForeignKey(db_column=b'staff_info', blank=True, to='staff.StaffInfo', null=True, verbose_name='\u5458\u5de5\u57fa\u672c\u4fe1\u606f')),
            ],
            options={
                'db_table': 'attend_report',
                'verbose_name': '\u8003\u52e4\u7edf\u8ba1',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='AvaiLeave',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('category', models.CharField(max_length=100, verbose_name='\u53ef\u7528\u5047\u671f\u7c7b\u578b', db_column=b'category', blank=True)),
                ('span', models.CharField(max_length=100, verbose_name='\u6323\u5f97\u7684\u5047\u671f\u957f\u5ea6', db_column=b'span', blank=True)),
                ('used', models.CharField(max_length=100, verbose_name='\u5df2\u4f7f\u7528\u5047\u671f\u957f\u5ea6', db_column=b'used', blank=True)),
                ('start_date', models.CharField(max_length=100, verbose_name='\u5047\u671f\u4ea7\u751f\u65e5\u671f', db_column=b'start', blank=True)),
                ('is_valid', models.BooleanField(default=True, verbose_name='\u662f\u5426\u6709\u6548', db_column=b'is_valid')),
                ('note', models.TextField(verbose_name='\u5907\u6ce8', db_column=b'note', blank=True)),
                ('staff', models.ForeignKey(db_column=b'staff_info', blank=True, to='staff.StaffInfo', null=True, verbose_name='\u5458\u5de5\u57fa\u672c\u4fe1\u606f')),
            ],
            options={
                'db_table': 'avi_leave',
                'verbose_name': '\u53ef\u7528\u5047\u671f',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='ConsumeRelation',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('avai_leave_start', models.CharField(max_length=100, verbose_name='\u5bf9\u5e94\u53ef\u7528\u5047\u671f\u7684\u5f00\u59cb', db_column=b'avai_leave_start', blank=True)),
                ('avai_leave_end', models.CharField(max_length=100, verbose_name='\u5bf9\u5e94\u53ef\u7528\u5047\u671f\u7684\u7ed3\u675f', db_column=b'avai_leave_end', blank=True)),
                ('used_leave_start', models.CharField(max_length=100, verbose_name='\u5bf9\u5e94\u5df2\u7528\u5047\u671f\u7684\u5f00\u59cb\u65f6\u95f4', db_column=b'used_leave_start', blank=True)),
                ('used_leave_end', models.CharField(max_length=100, verbose_name='\u5bf9\u5e94\u5df2\u7528\u5047\u671f\u7684\u7ed3\u675f\u65f6\u95f4', db_column=b'used_leave_end', blank=True)),
                ('avai_leave', models.ForeignKey(related_name=b'relation', db_column=b'avai_leave', blank=True, to='attendance.AvaiLeave', null=True, verbose_name='\u5bf9\u5e94\u7684\u53ef\u7528\u5047\u671f')),
            ],
            options={
                'db_table': 'consume_relation',
                'verbose_name': '\u53ef\u7528\u5047\u671f_\u5df2\u7528\u5047\u671f_\u5bf9\u5e94\u5173\u7cfb',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='LeaveApplication',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='\u521b\u5efa\u65f6\u95f4', db_column=b'ctime')),
                ('create_by', models.CharField(max_length=64, verbose_name='\u521b\u5efa\u4eba(\u5de5\u53f7)', db_column=b'cperson', blank=True)),
                ('update_time', models.DateTimeField(db_column=b'utime', auto_now=True, auto_now_add=True, verbose_name='\u4fee\u6539\u65f6\u95f4')),
                ('update_by', models.CharField(max_length=64, verbose_name='\u4fee\u6539\u4eba(\u5de5\u53f7)', db_column=b'uperson', blank=True)),
                ('category', models.CharField(max_length=100, verbose_name='\u8bf7\u5047\u7c7b\u578b', db_column=b'category', blank=True)),
                ('start_time', models.CharField(max_length=100, verbose_name='\u8bf7\u5047\u5f00\u59cb\u65f6\u95f4', db_column=b'start', blank=True)),
                ('end_time', models.CharField(max_length=100, verbose_name='\u8bf7\u5047\u7ed3\u675f\u65f6\u95f4', db_column=b'end', blank=True)),
                ('reason', models.TextField(verbose_name='\u8bf7\u5047\u539f\u56e0', blank=True)),
                ('check_record', models.TextField(verbose_name='\u5ba1\u6279\u8bb0\u5f55', db_column=b'check_record', blank=True)),
                ('status', models.CharField(max_length=100, verbose_name='\u7533\u8bf7\u5047\u671f\u9879\u7684\u72b6\u6001', db_column=b'status', blank=True)),
                ('note', models.TextField(verbose_name='\u5907\u6ce8', db_column=b'note', blank=True)),
                ('ope_history', models.TextField(verbose_name='\u64cd\u4f5c\u8bb0\u5f55', db_column=b'ope_history', blank=True)),
                ('staff', models.ForeignKey(db_column=b'staff_info', blank=True, to='staff.StaffInfo', null=True, verbose_name='\u5458\u5de5\u57fa\u672c\u4fe1\u606f')),
            ],
            options={
                'db_table': 'attend_ignore_application',
                'verbose_name': '\u63d0\u4ea4\u7684\u8bf7\u5047',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='LeaveModel',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('category', models.CharField(max_length=100, verbose_name='\u5df2\u7528\u5047\u671f\u7c7b\u578b', db_column=b'category', blank=True)),
                ('start_time', models.CharField(max_length=100, verbose_name='\u8bf7\u5047\u5f00\u59cb\u65f6\u95f4', db_column=b'start', blank=True)),
                ('end_time', models.CharField(max_length=100, verbose_name='\u8bf7\u5047\u7ed3\u675f\u65f6\u95f4', db_column=b'end', blank=True)),
                ('matched', models.BooleanField(default=False, verbose_name='\u8bf7\u5047\u662f\u5426\u5339\u914d\u53ef\u7528\u5047\u671f', db_column=b'matched')),
                ('staff', models.ForeignKey(db_column=b'staff_info', blank=True, to='staff.StaffInfo', null=True, verbose_name='\u5458\u5de5\u57fa\u672c\u4fe1\u606f')),
                ('submited_leave', models.ForeignKey(related_name=b'usedleave', db_column=b'submited_leave', blank=True, to='attendance.LeaveApplication', null=True, verbose_name='\u76f8\u5173\u7684\u5047\u671f\u7533\u8bf7')),
            ],
            options={
                'db_table': 'attend_ignore',
                'verbose_name': '\u5df2\u4f7f\u7528\u5047\u671f',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='MsgModel',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('category', models.CharField(max_length=200, verbose_name='\u6d88\u606f\u7c7b\u578b', db_column=b'category', blank=True)),
                ('title', models.CharField(max_length=500, verbose_name='\u6d88\u606f\u6807\u9898', db_column=b'title', blank=True)),
                ('content', models.TextField(verbose_name='\u6d88\u606f\u5185\u5bb9', db_column=b'content', blank=True)),
                ('status', models.CharField(default=b'pending', max_length=100, verbose_name='\u6d88\u606f\u72b6\u6001', db_column=b'status', blank=True)),
                ('gen_time', models.CharField(max_length=100, verbose_name='\u751f\u6210\u65f6\u95f4', db_column=b'gen_time', blank=True)),
                ('note', models.TextField(verbose_name='\u5907\u6ce8', db_column=b'note', blank=True)),
                ('staff', models.ForeignKey(db_column=b'staff_info', blank=True, to='staff.StaffInfo', null=True, verbose_name='\u63a5\u6536\u5458\u5de5')),
            ],
            options={
                'db_table': 'msg_model',
                'verbose_name': '\u6d88\u606f\u6570\u636e',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='SpecialWorkshift',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='\u521b\u5efa\u65f6\u95f4', db_column=b'ctime')),
                ('create_by', models.CharField(max_length=64, verbose_name='\u521b\u5efa\u4eba(\u5de5\u53f7)', db_column=b'cperson', blank=True)),
                ('update_time', models.DateTimeField(db_column=b'utime', auto_now=True, auto_now_add=True, verbose_name='\u4fee\u6539\u65f6\u95f4')),
                ('update_by', models.CharField(max_length=64, verbose_name='\u4fee\u6539\u4eba(\u5de5\u53f7)', db_column=b'uperson', blank=True)),
                ('date', models.CharField(max_length=50, verbose_name='\u65e5\u671f', db_column=b'date', blank=True)),
                ('workshift', models.CharField(max_length=100, verbose_name='\u4f5c\u606f\u65f6\u95f4', db_column=b'workshift', blank=True)),
                ('is_workday', models.BooleanField(default=True, verbose_name='\u662f\u5426\u5de5\u4f5c\u65e5', db_column=b'is_workday')),
                ('note', models.TextField(verbose_name='\u5907\u6ce8', db_column=b'note', blank=True)),
            ],
            options={
                'db_table': 'special_workshift',
                'verbose_name': '\u7279\u6b8a\u4f5c\u606f\u65e5\u671f',
            },
            bases=(models.Model,),
        ),
        migrations.AddField(
            model_name='consumerelation',
            name='used_leave',
            field=models.ForeignKey(related_name=b'relation', db_column=b'used_leave', blank=True, to='attendance.LeaveModel', null=True, verbose_name='\u5bf9\u5e94\u7684\u5df2\u7528\u5047\u671f'),
            preserve_default=True,
        ),
    ]
